/**
 * Created by jijin on 2017/7/9.
 */
import React, { Component } from 'react';
import {
  ActivityIndicator,
  Platform
} from 'react-native';

import {AppColors} from '../../style';

export default class AutoActivityIndicator extends Component {
  render() {
    return (
      <ActivityIndicator
        size={this.props.size || 'large'}
        style={this.props.style}
        color={
          Platform.OS == 'ios' ? AppColors.brand.secondary : AppColors.brand.primary
        }
      />
    )
  }
}